/*
 * #%L
 * InterfaceAPI
 * %%
 * Copyright (C) 2011 Ractoc.com
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package com.ractoc.opengamefinder.api.messages.network;

import com.ractoc.opengamefinder.api.network.ClientServerMessage;
import com.jme3.network.serializing.Serializable;

/**
 * Send the RegisterMessage via SpiderMonkey over the network.
 * @author ractoc
 * @version 0.1
 */
@Serializable
public final class RegisterNetworkMessage extends ClientServerMessage {

    private String name;
    private String password;
    private String repeatPassword;
    private String avatarFile;
    private byte[] avatarFileContent;

    /**
     * Default constructor.
     */
    public RegisterNetworkMessage() {
    }

    /**
     * Get the name of the player that is to be registered.
     * 
     * @return The name of the player.
     */
    public String getName() {
        return name;
    }

    /**
     * Set the name of the player that is to be registered.
     * 
     * @param nameParam
     *            The name of the player.
     */
    public void setName(final String nameParam) {
        this.name = nameParam;
    }

    /**
     * Get the password of the player that is to be registered.
     * 
     * @return The password of the player that is to be registered.
     */
    public String getPassword() {
        return password;
    }

    /**
     * Set the password of the player that is to be registered.
     * 
     * @param passwordParam
     *            The password of the player that is to be registered.
     */
    public void setPassword(final String passwordParam) {
        this.password = passwordParam;
    }

    /**
     * Get the repeated password, this is to verify that the password entered
     * doesn't contain any typing errors.
     * 
     * @return The repeated password.
     */
    public String getRepeatPassword() {
        return repeatPassword;
    }

    /**
     * Set the repeated password, this is to verify that the password entered
     * doesn't contain any typing errors.
     * 
     * @param repeatPasswordParam The repeated password.
     */
    public void setRepeatPassword(final String repeatPasswordParam) {
        this.repeatPassword = repeatPasswordParam;
    }

    public byte[] getAvatarFileContent() {
        return avatarFileContent;
    }

    public void setAvatarFileContent(byte[] avatarFileContent) {
        this.avatarFileContent = avatarFileContent;
    }

    public String getAvatarFile() {
        return avatarFile;
    }

    public void setAvatarFile(String avatarFile) {
        this.avatarFile = avatarFile;
    }
}
